package com.taiyuan.ty.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.taiyuan.ty.entity.PlaceFavorite;

import java.util.List;

public interface PlaceFavoriteService extends IService<PlaceFavorite> {
    boolean favoritePlace(Long placeId, Long userId);

    boolean unfavoritePlace(Long placeId, Long userId);

    List<PlaceFavorite> getFavoritesByUserId(Long userId);

    boolean isFavorite(Long placeId, Long userId);
}
